package com.woniuxy.enjoylife.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 
 * </p>
 *
 * @author teamEnjoyLife75
 * @since 2021-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("activity")
@Repository
//活动表
public class Activity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //活动发起者的id
    private Integer uid;
    //活动的小区id
    private Integer cid;
    //活动名称
    private String name;
    //活动地址
    private String address;
    //活动时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
    //活动图片
    private String image;
    //活动内容
    private String content;
    //活动    0：未开始    1：报名中    2：已结束
    private Integer result;
    //是否删除  0：未删除   1：已删除
    private Integer status;


}
